package com.ecoolex.upscale.hotel.graphql.api;

import org.springframework.boot.SpringApplication;

import com.ecoolex.framework.code.generator.graphql.core.GraphqlCodeGeneratorConstant;


public class UpscaleHotelGraphqlApiServiceStarter{

	public static void main(String[] args) throws Exception {
		System.setProperty("project.name", "upscale-hotel-graphql-api");
		System.setProperty(GraphqlCodeGeneratorConstant.GRAPHQL_BUILD_CATALOG, "./target/");
		System.setProperty(GraphqlCodeGeneratorConstant.GRAPHQL_BUILD_ENABLE, "true");
		System.setProperty("debug", "true");
		System.setProperty("graphql.visibility", "true");
		System.setProperty("spring.config.name", "application-local");

		// System.setProperty("logging.level.com.ecoolex", "debug");
		//
		// System.setProperty("pdf.build", "true");

		SpringApplication.run(Application.class);

		// Desktop.getDesktop().browse(new URI("http://127.0.0.1:8080/"));
	}
}
